package cn.com.surker.enums.oa;

import cn.com.surker.enums.IDescription;

/**
 * @Author lucky
 * @create 2023年04月07 14:18
 * @desc 打卡状态枚举
 */
public enum ClockStatusEnum implements IDescription {

    NORMAL(0,"正常"), LATE(1,"迟到"), MORNING(2,"早退"),
    LACK(3,"旷工"), LACK_CARD(4,"缺卡"), ADDRESS_ERROR(5,"地点异常"),
    DEVICE_ERROR(6, "地点异常"), LEAVE(7, "请假"), SUPPLEMENT(8, "补卡")
    , OTHER(9, "其他");

    private final String description;

    private final Integer code;

    ClockStatusEnum(Integer code, String description) {
        this.description = description;
        this.code = code;
    }

    @Override
    public String getDescription() {
        return description;
    }

    public Integer getCode() {return code;}
}